<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app"></div>
  <script src="./renderer.js">
  </script>
  <script>
     const vnode = h('h2',{class:'myColor',id:"aaa"},[
      h('h2',null,'当前计数'),
      h('button',null,'+1'),
      h('button',null,'-1')
    ])
    mount(vnode,document.querySelector('#app'))
    const vnode1 = h('h2',{class:'yanzhi',id:"aaa",style:'color:red'},[h('h1',null,'当前计数'),h('h2',null,'+1')])
    patch(vnode,vnode1)
  </script>
</body>
</html>